<!DOCTYPE html>
<html lang="en">
  <head>
    <title>ParseResults Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset='utf-8'>
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>
    <a name="//apple_ref/swift/Class/ParseResults" class="dashAnchor"></a>
    <a title="ParseResults Class Reference"></a>
    <header>
      <div class="content-wrapper">
        <p><a href="../index.html">TwitterText 0.0.1 Docs</a> (16% documented)</p>
        <p class="header-right"><a href="https://github.com/nysander/twitter-text"><img src="../img/gh.png"/>View on GitHub</a></p>
        <p class="header-right"><a href="dash-feed://https%3A%2F%2Fnysander.github.io%2Ftwitter-text%2Fdocsets%2FTwitterText.xml"><img src="../img/dash.png"/>Install in Dash</a></p>
        <p class="header-right">
          <form role="search" action="../search.json">
            <input type="text" placeholder="Search documentation" data-typeahead>
          </form>
        </p>
      </div>
    </header>
    <div class="content-wrapper">
      <p id="breadcrumbs">
        <a href="../index.html">TwitterText Reference</a>
        <img id="carat" src="../img/carat.png" />
        ParseResults Class Reference
      </p>
    </div>
    <div class="content-wrapper">
      <nav class="sidebar">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Classes/Configuration.html">Configuration</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Entity.html">Entity</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/ParseResults.html">ParseResults</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/Parser.html">Parser</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/TwitterText.html">TwitterText</a>
              </li>
              <li class="nav-group-task">
                <a href="../Classes/WeightedRange.html">WeightedRange</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a href="../Enums/EntityType.html">EntityType</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">
        <section>
          <section class="section">
            <h1>ParseResults</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">ParseResults</span></code></pre>

                </div>
              </div>
            <p>Undocumented</p>

              <div class="slightly-smaller">
                <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/ParseResults.swift#L8-L41">Show on GitHub</a>
              </div>
          </section>
          <section class="section task-group-section">
            <div class="task-group">
              <ul>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText12ParseResultsC14weightedLengthSivp"></a>
                    <a name="//apple_ref/swift/Property/weightedLength" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText12ParseResultsC14weightedLengthSivp">weightedLength</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The adjust tweet length based on char weights.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">weightedLength</span><span class="p">:</span> <span class="kt">Int</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/ParseResults.swift#L10">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText12ParseResultsC10permillageSivp"></a>
                    <a name="//apple_ref/swift/Property/permillage" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText12ParseResultsC10permillageSivp">permillage</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Compute true weightedLength by weightedLength/permillage</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">private(set)</span> <span class="k">var</span> <span class="nv">permillage</span><span class="p">:</span> <span class="kt">Int</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/ParseResults.swift#L13">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText12ParseResultsC7isValidSbvp"></a>
                    <a name="//apple_ref/swift/Property/isValid" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText12ParseResultsC7isValidSbvp">isValid</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>If the tweet is valid or not.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">isValid</span><span class="p">:</span> <span class="kt">Bool</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/ParseResults.swift#L16">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText12ParseResultsC07displayB5RangeSo8_NSRangeVvp"></a>
                    <a name="//apple_ref/swift/Property/displayTextRange" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText12ParseResultsC07displayB5RangeSo8_NSRangeVvp">displayTextRange</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Text range that is visible</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">displayTextRange</span><span class="p">:</span> <span class="kt">NSRange</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/ParseResults.swift#L19">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText12ParseResultsC012validDisplayB5RangeSo8_NSRangeVvp"></a>
                    <a name="//apple_ref/swift/Property/validDisplayTextRange" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText12ParseResultsC012validDisplayB5RangeSo8_NSRangeVvp">validDisplayTextRange</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Text range that is valid under Twitter</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">let</span> <span class="nv">validDisplayTextRange</span><span class="p">:</span> <span class="kt">NSRange</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/ParseResults.swift#L22">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:11TwitterText12ParseResultsC14weightedLength10permillage5valid12displayRange0hJ0ACSi_SiSbSo8_NSRangeVAJtcfc"></a>
                    <a name="//apple_ref/swift/Method/init(weightedLength:permillage:valid:displayRange:validRange:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:11TwitterText12ParseResultsC14weightedLength10permillage5valid12displayRange0hJ0ACSi_SiSbSo8_NSRangeVAJtcfc">init(weightedLength:<wbr>permillage:<wbr>valid:<wbr>displayRange:<wbr>validRange:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Undocumented</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="n"><a href="../Classes/ParseResults.html#/s:11TwitterText12ParseResultsC14weightedLengthSivp">weightedLength</a></span> <span class="nv">length</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span>
            <span class="nv">permillage</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span>
            <span class="nv">valid</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">,</span>
            <span class="nv">displayRange</span><span class="p">:</span> <span class="kt">NSRange</span><span class="p">,</span>
            <span class="nv">validRange</span><span class="p">:</span> <span class="kt">NSRange</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div class="slightly-smaller">
                        <a href="https://github.com/nysander/twitter-text/tree/0.0.1/Sources/TwitterText/ParseResults.swift#L24-L34">Show on GitHub</a>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </section>
        </section>
        <section id="footer">
          <p>&copy; 2020 <a class="link" href="https://pawelmadej.com" target="_blank" rel="external">Paweł Madej</a>. All rights reserved. (Last updated: 2020-09-22)</p>
          <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.5</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
        </section>
      </article>
    </div>
  </body>
</div>
</html>
